package de.tum.in.eist.im.client;

import de.tum.in.eist.im.client.GUIwidgets.Chat;
import de.tum.in.eist.im.client.GUIwidgets.Groupsettings;

public class Controller{
	private Chat chat;
	private Groupsettings groupsettings;
	public Controller(GUI parent) {
		chat = new Chat(parent);
		groupsettings = new Groupsettings(parent);
	}
	
	public void flipToBlank() {
		chat.hide();
		groupsettings.hide();
	}
	
	public void flipToChat() {
		chat.show();
		groupsettings.hide();
		// to get started ASAP the messageBox is focused
		chat.getMessageBox().setFocus(true);
	}
	
	public void flipToSettings() {
		chat.hide();
		groupsettings.show();
	}
	
	public Groupsettings getGroupsettings() {
		return groupsettings;
	}
	
	public Chat getChat() {
		return chat;
	}
}
